package com.example.swagger2.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "测试Api dto反应value", description = "测试api dto反应描述")
public class ResponseDTO  extends Command {
    @ApiModelProperty(value = "返回的时间的原始的响应")
    private LocalDateTime now;

    @ApiModelProperty(value = "返回的时间的格式经过加工处理")
    @JsonFormat(pattern = "yyy-MM-dd")
    private LocalDateTime now2;
}
